<!DOCTYPE html>
<html lang="zh">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>芸薏</title>
    <link rel="stylesheet" href="global.css">
    <link rel="stylesheet" href="game.css">
    <link rel="stylesheet" href="start.css">
    <link rel="stylesheet" href="setting.css">
</head>
<body>
    <!-- 自动关闭弹窗 -->
    <div id="custom-alert" class="alert">
        <p id="custom-alert-message">提示内容</p>
    </div>

    <!-- 是否弹窗 -->
    <div id="yn-alert" class="alert">
        <p id="yn-alert-message">提示内容</p>
        <button id="yes">是</button>
        <button id="no">否</button>
    </div>

    <!-- 开始游戏界面 -->
    <div id="start-screen" class="screen">
        <div class="container">
            <h2 class="title">芸薏</h2>
            
            <button id="start-new-game" class="btn">开始新游戏</button>
            <button id="select-slot" class="btn">选择存档</button>
        </div>
    </div>

    <!-- 选择存档界面 -->
    <div id="slot-screen" class="screen" style="display:none;">
        <div id="slot-container" class="container">
            <h2 class="title">选择存档</h2>

            <div id="saved-slots"></div>

            <button id="slotExitBtn" class="btn">退出</button>
        </div>
    </div>

    <!-- 新建游戏界面 -->
    <div id="newGame-screen" class="screen" style="display:none;">
        <div id="newGame-container" class="container">
            <h2 class="title">新建游戏</h2>

            <p>存档名称：<input type="text" id="slot-name" placeholder="存档名..."></p>

            <div>
                <h3>选择角色皮肤</h3>
                <div id="skin-options">
                    <div class="skin-option selected"></div>
                    <div class="skin-option"></div>
                    <div class="skin-option"></div>
                    <div class="skin-option"></div>
                </div>
            </div>
            
            <div>
                <h3>游戏难度</h3>
                <div>
                    <input type="radio" id="easy" name="difficulty" value="easy" checked>
                    <label for="easy">简单</label>
                    
                    <input type="radio" id="normal" name="difficulty" value="normal">
                    <label for="normal">普通</label>
                    
                    <input type="radio" id="hard" name="difficulty" value="hard">
                    <label for="hard">困难</label>
                </div>
            </div>

            <p id="new-game-hint" class="hint" display="none"></p>

            <button id="start" class="btn">开启世界</button>
            <button id="newGameExitBtn" class="btn">退出</button>
        </div>
    </div>

    <!-- 游戏主界面 -->
    <div id="game-container" style="display:none;">
        <div id="game-map"></div>
        <div id="player"></div>

        <div id="ui">
            <div>生命值: <span id="health">100</span></div>
        </div>

        <button id="pauseGame" class="btn">暂停</button>
    </div>

    <!-- 设置界面 -->
    <div id="settings-screen" class="screen" style="display:none;">
        <div id="settings-container" class="container">
            <h2 class="title">游戏设置</h2>
            
            <div class="settings-section">
                <h3>音量设置</h3>
                <div>
                    <label for="bgm-volume">背景音乐:</label>
                    <input type="range" id="bgm-volume" min="0" max="100" value="50">
                    
                    <label for="sfx-volume">音效:</label>
                    <input type="range" id="sfx-volume" min="0" max="100" value="70">
                </div>
            </div>
            
            <div id="settings-buttons">
                <button id="save-settings" class="btn">保存设置</button>
                <button id="save-game" class="btn">存档</button>
                <button id="exit-to-menu" class="btn">退出游戏</button>
                <button id="close-settings" class="btn">返回游戏</button>
            </div>
        </div>
    </div>

    <script src='tools.js'></script>
    <script src='game.js'></script>
    <script src='start.js'></script>
    <script src='variables.js'></script>
    <script src='main.js'></script>
</body>
</html>